class AddUploadCompleteColumnToMedia < ActiveRecord::Migration
  def self.up
    add_column :medias, :upload_complete, :integer
    Media.find(:all).each do |media|
      media.update_attributes(:upload_complete => 1)
    end
  end

  def self.down
    remove_column :medias, :upload_complete
  end
end
